package com.sg.dto.base.calc.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc OrgOrMatchingStandardDataDto
 * @使用场景
 */
@Data
public class OrgOrMatchingStandardDataDto
        extends BaseDto
        implements Serializable {

    /**
     * 填报评价责任人对象ID
     */
    @ApiModelProperty("填报评价责任人对象ID")
    private String personLiableObjId;

    /**
     * 填报评价责任人业务角色标识
     */
    @ApiModelProperty("填报评价责任人业务角色标识")
    private String bizRoleObjCode;

    /**
     * 填报评价责任人业务角色对象ID
     */
    @ApiModelProperty("填报评价责任人业务角色对象ID")
    private String bizRoleObjId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        OrgOrMatchingStandardDataDto that = (OrgOrMatchingStandardDataDto) o;
        return personLiableObjId == that.personLiableObjId && bizRoleObjCode == that.bizRoleObjCode && bizRoleObjId == that.bizRoleObjId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), personLiableObjId, bizRoleObjCode, bizRoleObjId);
    }

}
